package com.kk.responsibilitychain;

import com.kk.responsibilitychain.request.PurchaseRequest;

public class SchoolMasterApprover extends Approver {
    public SchoolMasterApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest purchaseRequest) {
        if (purchaseRequest.getPrice() > 10000) {
            System.out.println("请求编号：" + purchaseRequest.getId() + "被" + this.name + "处理了！");
        }
    }
}
